import Vue from 'vue'
import Router from 'vue-router'
import main from '../components/main.vue'
import home from '../components/home.vue'
import mall from '../components/mall.vue'

Vue.use(Router)

export default new Router({
    routes: [
      {
        path: '/',
        name: 'main',
        component: main,
        children:[
          {
            path: '/home',
            name: 'home',
            component: home,
          },
          {
            path: '/mall',
            name: 'mall',
            component: mall,
          }
        ]
      },
    ]
  })